//console.log(fs);
var jsfile=process.argv[2];
var options=process.argv[3];
var beautify = require('js-beautify').html_beautify,
    fs = require('fs');

fs.readFile(jsfile, 'utf8', function (err, data) {
    if (err) {
        throw err;
    }
	var h_option = JSON.parse(options);
	var data = beautify(data, h_option);
	console.log(data);
});